package main

import "time"

// todo create a gorounting pool
func main() {
	arr := []int{1, 2, 3, 4, 5, 6, 7, 8}
	defer func() {
		arr[0] = 1
	}()
	for _, a := range arr {
		//b := a
		go func(xx int) {
			println(xx)
		}(a)
	}

	time.Sleep(time.Second)
}
